<div class="row">
    <div class="col-xs-12 col-md-12 col-lg-12">
		<form id="bbFormss" action="" method="post">
		<input type="hidden" name="id" value="{$ids}"/>
		<input type="hidden" name="usertype" value="{$usertype}" />
		<div class="form-group" style="text-align: center;">
			<label class=" control-label">备注：<sup>*</sup></label>
			<input type="text" name="remark" class="form-control" style="width: 300px; display: inline-block;"/>
			<button class="btn btn-primary" type="submit">保存</button>
		</div>
		
		</form>
	</div>
</div>
<!--表单验证与提交封装-->
<script type="text/javascript">
	$('#bbFormss').bootstrapValidator({
		submitHandler: function (validator, form, submitButton) {
           var tourl="{:U('Admin/Wx/remark_set')}";
           var data=$('#bbFormss').serialize();
           var funok=function(){
			    var callok=function(){
					//成功删除后刷新
					$('.bootbox').remove();
					$('.modal-backdrop').remove();
					return false;
				};
				var callerr=function(){
					//拦截错误
					$('.bootbox').remove();
					$('.modal-backdrop').remove();
					return false;
				};
				$.bb.ajax('post',tourl,data,callok,callerr);
			}						
			funok();
	        return false;
	    },
	});
</script>
